﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ddz_server.game
{
    
    
    class Card
    {
       
       
       public string suit;
       public int number;
        /// <summary>
        /// 显示在组件上的文字
        /// </summary>
        public string display;

        public Card()
        {

        }

        /// <summary>
        /// 54张牌,id从0-53，（52、53为小王、大王）
        /// 0-12，黑桃 
        /// 13-25,红桃 
        /// 26-38，梅花 
        /// 39-51,方块
        /// 数字 3-A、2
        /// </summary>
        public Card(int id)
        {
            if (id == 52)
            {
                number =  998;
                display = "xiaowang";
            }
            else if (id == 53)
            {
                number =  999;
                display = "dawang";
            }
            else
            {
                suit = Constants.suits[id % 4];
                number = id % 13;
                display = Constants.displays[id % 13];
            }
        }

       
    }
}
